@import '../../style/themes/default';
@import '../../style/mixins/index';

@backtop-prefix-cls: ~'@{c7n-prefix}-back-top';

.@{backtop-prefix-cls} {
  .reset-component;
  position: fixed;
  right: 1rem;
  bottom: 0.5rem;
  z-index: @zindex-back-top;
  width: 0.4rem;
  height: 0.4rem;
  cursor: pointer;

  &-content {
    width: 0.4rem;
    height: 0.4rem;
    overflow: hidden;
    color: @back-top-color;
    text-align: center;
    background-color: @back-top-bg;
    border-radius: 0.2rem;
    transition: all 0.3s @ease-in-out;

    &:hover {
      background-color: @back-top-hover-bg;
      transition: all 0.3s @ease-in-out;
    }
  }

  &-icon {
    width: 0.14rem;
    height: 0.16rem;
    margin: 0.12rem auto;
    background: url()
      ~'100%/100%' no-repeat;
  }
}

@import './responsive';
